//
//  LBHittestController.m
//  TEXT
//
//  Created by mac on 2024/6/1.
//  Copyright © 2024 刘博. All rights reserved.
//

#import "LBHittestController.h"
#import "LBHittestButton.h"

@interface LBHittestController ()

@property (nonatomic, strong) LBHittestButton *button;

@end

@implementation LBHittestController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.button];
    // Do any additional setup after loading the view.
}

- (void)test {
    NSLog(@"哈哈哈这里是测试哈哈哈这里是测试");
}

#pragma mark - lazy load

- (LBHittestButton *)button
{
    if (!_button) {
        _button = [LBHittestButton buttonWithType:UIButtonTypeCustom];
        [_button addTarget:self action:@selector(test) forControlEvents:UIControlEventTouchUpInside];
        _button.backgroundColor = [UIColor cyanColor];
        _button.frame = CGRectMake(100, 100, 100, 100);
        _button.expandEdgeInset = UIEdgeInsetsMake(-40, -40, -40, -40);
    }
    return _button;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
